const path = require('path');
const vtkChainWebpack = require('vtk.js/Utilities/config/chainWebpack');

module.exports = {
  configureWebpack: {
    resolve: {
      alias: {
        assets: '@/assets',
        common: '@/common',
        components: '@/components',
        network: '@/network',
        views: '@/views',
        services: '@/services',
        utils: '@/utils',
      },
    },
    plugins: [
    ],
  },
  chainWebpack: (config) => {
    config.plugin('html').tap((args) => {
      args[0].title = '机械臂';
      return args;
    });
    vtkChainWebpack(config);
  },
  lintOnSave: false,
  devServer: {
    proxy: "http://localhost:8000"
  },
};
